﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ReviewCurveApp.Classes
{
    public class Parameters
    {
        List<KeyValuePair<string, object>> _parameters = new List<KeyValuePair<string, object>>();

        internal void Add(string key, object value)
        {
            _parameters.Add(new KeyValuePair<string, object>(key, value));
        }

        public List<KeyValuePair<string, object>> List 
        {
            get 
            {
                return _parameters;
            }
        }

        public int Count
        {
            get
            {
                return _parameters.Count;
            }
        }

        public KeyValuePair<string, object> this[int index]
        {
            get
            { //检查索引范围

                return _parameters[index];

            }
        }

    }
}
